package com.hw.dao;

import com.hw.pojo.Message;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * @InterfaceName: MessageDao
 * @Description: 接口方法
 * @Author: vie0134
 * @Date: 2020-12-11 09:09
 * @Version: 1.0
 **/
@Repository
public interface MessageDao {
    void addMessage(Message message);
    Integer findIdByUsername(String username);
    void updateMessage(Message message);
    void deleteMessage(Integer id);
    Message selectMessageById(Integer id);
    Message selectMessageByUsername(String username);
    List<Message> findMessage();
}
